package Test.stream流测试;

/**
 * @Author kirito
 * @Date 2023/12/13 19:41
 * @PackageName:Test.stream流测试
 * @ClassName: Person
 * @Description:
 * @Version 1.0
 */
public class Person {
    String name;
    Integer age;
    Integer salary;

    public Person(String name, Integer age, Integer salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }

    public Person(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", salary=" + salary +
                '}';
    }
}
